﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:WhileAway" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="AdminWindow"
    Title="Coding 4 Fun - While you were away..." Height="325" Width="440" MinWidth="440" MinHeight="325" mc:Ignorable="d">

    <Grid>
        <Label Height="28" HorizontalAlignment="Left" Margin="14,13,0,0" x:Name="label1" VerticalAlignment="Top" Width="120" Content="Messages:"/>
        <ListBox Margin="14,54,242,53" x:Name="listBoxMessages" />
        <Label Height="28" Margin="0,7.5,128,0" x:Name="label2" VerticalAlignment="Top" HorizontalAlignment="Right" Width="80" Content="Your name:"/>
        <TextBox Height="23" Margin="0,37.5,15,0" x:Name="textBoxUsername" VerticalAlignment="Top" HorizontalAlignment="Right" Width="193" Text="{Binding UserName, Mode=OneWay}" />
        <Label Margin="0,137.5,102.5,0" x:Name="label3" HorizontalAlignment="Right" Width="103" Height="28.25" VerticalAlignment="Top" Content="Expected return:"/>
        <Separator Margin="190,0,0,0" x:Name="separator1" HorizontalAlignment="Left" Width="8.75" />
        <TextBox HorizontalAlignment="Right" Margin="0,167.75,177.5,0" x:Name="textBoxHours" Width="28" Height="23" VerticalAlignment="Top" />
        <Label HorizontalAlignment="Right" Margin="0,166.75,151.25,0" x:Name="label4" Width="25" Height="24" VerticalAlignment="Top" Content="hrs"/>
        <TextBox Height="23" HorizontalAlignment="Right" Margin="0,167.75,113.75,0" x:Name="textBoxMinutes" VerticalAlignment="Top" Width="28" />
        <Label HorizontalAlignment="Right" Margin="0,165.75,71.25,0" x:Name="label5" Width="36" Height="25" VerticalAlignment="Top" Content="mins"/>
        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,133,20" x:Name="buttonLeave" VerticalAlignment="Bottom" Width="75" Click="buttonLeave_Click" Content="Leave"/>
        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,15,20" x:Name="buttonClose" VerticalAlignment="Bottom" Width="75" Click="buttonClose_Click" Content="Close"/>
        <Button Height="23" HorizontalAlignment="Left" Margin="14,0,0,20" x:Name="buttonDeleteOneMessage" VerticalAlignment="Bottom" Width="75" Click="buttonDeleteOneMessage_Click" Content="Delete One"/>
        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,242,20" x:Name="buttonDeleteAllMessages" VerticalAlignment="Bottom" Width="75" Click="buttonDeleteAllMessages_Click" Content="Delete All"/>
        <Label HorizontalAlignment="Right" Margin="0,71.25,113.75,0" x:Name="label6" Width="91.75" Height="26.25" VerticalAlignment="Top" Content="Greeting:"/>
        <TextBox HorizontalAlignment="Right" Margin="0,100,12.5,0" x:Name="textBoxAwayGreeting" Width="193" Height="23.25" VerticalAlignment="Top" Text="{Binding Message}" />
        <Label Height="28" HorizontalAlignment="Right" Margin="0,202.25,91.25,0" x:Name="labelPhotoLocation" VerticalAlignment="Top" Width="54.25" Content="Location" IsEnabled="{Binding PhotosEnabled, Mode=Default}"/>
        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,65,61.611" x:Name="buttonPhotoFolderBrowse" VerticalAlignment="Bottom" Width="28" IsEnabled="{Binding PhotosEnabled, Mode=Default}" Click="buttonPhotoFolderBrowse_Click" Content="..."/>
        <CheckBox Height="16" HorizontalAlignment="Right" Margin="0,207.25,133,0" x:Name="checkBoxPhotosEnabled" VerticalAlignment="Top" Width="70.75" IsChecked="{Binding PhotosEnabled}" Content="Photos?"/>
    </Grid>
</Window>
